import { makeAutoObservable, computed } from 'mobx'
class HomeStore {
  // 初始化状态
  bannerList = []
  proList = []

  constructor (store) {
    makeAutoObservable(this)
    this.store = store
  }

  @computed get len () {
    return this.proList.length
  }

  changeBannerList (payload) {
    this.bannerList = payload
  }
  changeProList (payload) {
    this.proList = payload
  }
}

export default HomeStore